using System.Collections;
using System.Collections.Generic;
using System.IO;
using System.Xml.Serialization;
using UnityEngine;

public class Lesson : MonoBehaviour
{
    // Start is called before the first frame update
    void Start()
    {
        string path = Application.persistentDataPath + "/Lesson1Test.xml";
        if(File.Exists(path))
        {
            using (StreamReader streamreader = new StreamReader(path))
            {
                XmlSerializer serializer = new XmlSerializer(typeof(Player));
                Player p=serializer.Deserialize(streamreader) as Player;
            }

        }
    }

    // Update is called once per frame
    void Update()
    {
        
    }
}
